package main

import "fmt"

type Mover interface {
	move()
}

type dog struct{}

func (d dog) move() {
	fmt.Println("狗会动")
}

func main() {
	var x Mover
	var wangcai = dog{}
	x = wangcai
	var fugui = &dog{}
	x = fugui
	x.move()
}
